<template>
  <div class="research1">
      <h1 class="title">
          | {{title}}
      </h1>
      <div>
          <ul>
              <li class="newsdetail" v-for="(item,index) in newslist" :key="index">
                  <div class="newsinfo">
                      <nuxt-link target="_blank" :to="'/post/' + item.pid">{{item.name}}</nuxt-link>
                      <span><i class="el-icon-time"></i>{{item.createtime.slice(0,11)}}</span>
                  </div>
              </li>
          </ul>
      </div>
  </div>
</template>


<script>
export default {
  props: {
    title:{
      type:String,
      default:"投资策略"      
      },
    newslist:{
      type:Array,
      default:function(){
        return []
      }
    }
  }

};
</script>

<style scoped>
.research1{
    background: white;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
    padding: 20px;
}
.title{
    text-align: left;
    color: #cd9c54;
    font-size: 22px;
}
.newsdetail{
    overflow: hidden;
    margin: 30px 0;
}
.newsinfo{
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    
}
.newsinfo:hover{
    color: #cd9c54;
}
.newsinfo a{
    width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>

